declare const x: string; if (x) {}
<T extends string>(x: T) => x ? 1 : 0;
// output: declare const x: string; if (x.length > 0) {}; declare const x: string; if (x !== "") {}; declare const x: string; if (Boolean(x)) {}
// output: <T extends string>(x: T) => (x.length > 0) ? 1 : 0; <T extends string>(x: T) => (x !== "") ? 1 : 0; <T extends string>(x: T) => (Boolean(x)) ? 1 : 0;
